package com.yuju.account.enums;

import com.yuju.account.enums.BusinessTypeDetailEnum;

/**
 * 类名：BusinessTypeDetailEnum  <br />
 *
 * 功能：营业类型（支付方式）枚举
 *
 * @author : jiaokn <br />
 * @Date : 2017年12月4日 上午11:07:19  <br />
 * @version : 1.1 <br />
 */
public enum BusinessTypeDetailEnum {
	
	//支付类型
	BUSINESS_TYPE_DETAIL_XJ((byte)1, "现金"),
	BUSINESS_TYPE_DETAIL_ZZ((byte)2, "转账"),
	BUSINESS_TYPE_DETAIL_SK((byte)3, "刷卡"),
	BUSINESS_TYPE_DETAIL_WX((byte)4, "微信"),
	BUSINESS_TYPE_DETAIL_ZFB((byte)5, "支付宝"),
	BUSINESS_TYPE_DETAIL_QT((byte)6, "其他"),
    //销售点
	BUSINESS_TYPE_DETAIL_FF((byte)21, "房费"),
	BUSINESS_TYPE_DETAIL_KFB((byte)22, "客房吧"),
	BUSINESS_TYPE_DETAIL_KFPC((byte)23, "客房赔偿"),
	BUSINESS_TYPE_DETAIL_QTB((byte)24, "前台吧"),
	BUSINESS_TYPE_DETAIL_CYB((byte)25, "餐饮吧"),
	BUSINESS_TYPE_DETAIL_HY((byte)26, "会议"),
	BUSINESS_TYPE_DETAIL_DS((byte)27, "代收"),
	BUSINESS_TYPE_DETAIL_FWF((byte)28, "服务费"),
	BUSINESS_TYPE_DETAIL_XSDQT((byte)29, "其他"),
    //房费类型
	BUSINESS_TYPE_DETAIL_QRZ((byte)41, "全日租"),
	BUSINESS_TYPE_DETAIL_BRZ((byte)42, "半日租"),
	BUSINESS_TYPE_DETAIL_ZDF((byte)43, "钟点房"),
	BUSINESS_TYPE_DETAIL_FWZK((byte)44, "房费折扣"),
	BUSINESS_TYPE_DETAIL_JCF((byte)45, "加床费"),
	//单位结算类型
	BUSINESS_TYPE_DETAIL_DWXJ((byte)51, "现金"),
	BUSINESS_TYPE_DETAIL_DWZZ((byte)52, "转账"),
	BUSINESS_TYPE_DETAIL_DWSK((byte)53, "刷卡"),
	BUSINESS_TYPE_DETAIL_DWWX((byte)54, "微信"),
	BUSINESS_TYPE_DETAIL_DWZFB((byte)55, "支付宝"),
	BUSINESS_TYPE_DETAIL_MD((byte)56, "免单"),
	BUSINESS_TYPE_DETAIL_CFT((byte)57, "财付通"),
	BUSINESS_TYPE_DETAIL_DJ((byte)58, "单据"),
	BUSINESS_TYPE_DETAIL_YSK((byte)59, "预收款"),
	BUSINESS_TYPE_DETAIL_XJTK((byte)60, "现金退款"),
	BUSINESS_TYPE_DETAIL_ZZTK((byte)61, "转账退款"),
	BUSINESS_TYPE_DETAIL_SKTK((byte)62, "刷卡退款"),
	BUSINESS_TYPE_DETAIL_WXTK((byte)63, "微信退款"),
	BUSINESS_TYPE_DETAIL_ZFBTK((byte)64, "支付宝退款"),
	BUSINESS_TYPE_DETAIL_ZP((byte)65, "支票");
    
    private byte value;
    private String name;

    BusinessTypeDetailEnum(byte value, String name) {
        this.name = name;
        this.value = value;
    }
    // 普通方法
    public static String getName(int value) {
        for (BusinessTypeDetailEnum c : BusinessTypeDetailEnum.values()) {
            if (c.getValue() == value) {
                return c.name;
            }
        }
        return null;
    }

    public String getName() {
        return name;
    }

    public byte getValue() {
        return value;
    }
}
